#define  _CRT_SECURE_NO_WARNINGS
#include"List.h"

void test1()
{
	LTNode *phead=LTInit();
	LTPushBack(phead,1);
	LTPushBack(phead,2);
	LTPushBack(phead,3);
	LTPushBack(phead,4);
	LTPushBack(phead,5);
	LTPopBack(phead);
	LTPushFront(phead, 0);
	LTPopFront(phead);
	LTPrint(phead);

	//printf("%d ", LTSize(phead));


}


void test2()
{
	LTNode* phead = LTInit();
	LTPushBack(phead, 1);
	LTPushBack(phead, 2);
	LTPushBack(phead, 3);
	LTPushBack(phead, 4);
	LTPushBack(phead, 5);
	LTPushFront(phead, 0);
	LTNode* pos = LTFind(phead, 2);
	LTInsert(pos, 2);
	LTErase(pos);
	LTPrint(phead);


}

int main()
{
	//test1();
	test2();
	return 0;
}